#!/bin/bash
# {disk_size<1000M & mem_size<500M} > error > root
disk_size=$(df / |awk '/\//{print $4}')
mem_size=$(free |awk '/Mem/{print $4}')
while
do
if [ $disk-size -le 512000 -a $mem_size -le 1024000 ] ;then
	mail -s Warning root <<EOF
Insufficient resources
EOF
fi
done
